import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { rules } from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

export const columns: BasicColumn[] = [
  {
    title: '用户ID',
    dataIndex: 'memberId'
  },
  {
    title: '权益包等级',
    dataIndex: 'type'
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    label: '用户ID',
    field: 'memberId',
    component: 'Input'
  },
  {
    label: '权益包等级',
    field: 'type',
    // component: 'InputNumber'
    component: 'JDictSelectTag',
    componentProps: {
      dictCode: 'equity_package_level',
    },
  },

];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  { label: '', field: 'id', component: 'Input', show: false },
  {
    label: '用户ID',
    field: 'memberId',
    component: 'Input',
  },
  {
    label: '权益包等级',
    field: 'type',
    component: 'JDictSelectTag',
    componentProps: {
      dictCode: 'equity_package_level',
    },
  },
];
